package com.xinke.module.system.model.vo.notice;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 站内信消息新增/修改 Request VO")
@Data
public class NotifyMessageSaveReqVO {

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17276")
    private Long messageId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27630")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23563")
    @NotNull(message = "模版编号不能为空")
    private Long templateId;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板编码不能为空")
    private String templateCode;

    @Schema(description = "模版发送人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "模版发送人名称不能为空")
    private String templateNickName;

    @Schema(description = "模版内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模版内容不能为空")
    private String templateContent;

    @Schema(description = "模版类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "模版类型不能为空")
    private Integer templateType;

    @Schema(description = "模版参数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模版参数不能为空")
    private String templateParams;

    @Schema(description = "是否已读", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "是否已读不能为空")
    private Integer readStatus;

    @Schema(description = "阅读时间")
    private LocalDateTime readTime;

}